package net.maku.kyy.convert;

import net.maku.kyy.entity.KyyUserTokenEntity;
import net.maku.kyy.vo.KyyUserTokenVO;
import net.maku.kyy.vo.KyyUserTokenExcelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 应用用户token表
 *
 * @author MAKU babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Mapper
public interface KyyUserTokenConvert {
    KyyUserTokenConvert INSTANCE = Mappers.getMapper(KyyUserTokenConvert.class);

    KyyUserTokenEntity convert(KyyUserTokenVO vo);

    //
    KyyUserTokenVO convert(KyyUserTokenEntity entity);

    List<KyyUserTokenVO> convertList(List<KyyUserTokenEntity> list);

    List<KyyUserTokenEntity> convertList2(List<KyyUserTokenVO> list);

    List<KyyUserTokenExcelVO> convertExcelList(List<KyyUserTokenEntity> list);

    List<KyyUserTokenEntity> convertExcelList2(List<KyyUserTokenExcelVO> list);
}